home *** CD-ROM | disk | FTP | other *** search
- RULE HGlass (center, north, south, east, west)
- VAR index, new
- BEGIN
- index := 2*(2*(2*(2*east[0] + west[0]) + south[0]) + north[0]) + center[0]
- IF (index >= 1) AND (index <= 3) THEN
- new := 1
- ELSIF (index = 11) OR (index = 21) OR (index = 25) THEN
- new := 1
- ELSIF (index >= 29) AND (index <= 31) THEN
- new := 1
- ELSE
- new := 0
- END
- IF center[0] THEN new := new + 2 END
- RETURN new
- END